package per.turtle.job.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import per.turtle.common.core.web.entity.BaseEntity;

/**
 * 定时任务调度日志表 sys_job_log
 *
 * @author turtle
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString
public class SysJobLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务日志ID")
    @TableId(type = IdType.AUTO)
    private Long jobLogId;

    @ApiModelProperty("任务名称")
    private String jobName;

    @ApiModelProperty("任务组名")
    private String jobGroup;

    @ApiModelProperty("调用类")
    private String invokeClass;

    @ApiModelProperty("调用方法")
    private String invokeMethod;

    @ApiModelProperty("调用参数")
    private String invokeParams;

    @ApiModelProperty("日志信息")
    private String jobMessage;

    @ApiModelProperty("执行状态（0：失败；1：成功）")
    private Boolean isSuccess;

    @ApiModelProperty("异常信息")
    private String exceptionInfo;

}
